cmake_minimum_required(VERSION 3.0.0)

project(main VERSION 0.1.0)

set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)

set(SRC_LIST ${PROJECT_SOURCE_DIR}/src/main.c)

# find func.h
include_directories(${PROJECT_SOURCE_DIR}/func)

# 需显示指出要加载的库
# find_library(FUNC_LIB libfunc.dll HINTS ${PROJECT_SOURCE_DIR}/func/lib/)
find_library(FUNC_LIB libfunc.dll HINTS ${PROJECT_SOURCE_DIR}/func/lib/)

add_executable(main ${SRC_LIST})

target_link_libraries(main ${FUNC_LIB})




